package com.rm.zeyou.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.rm.zeyou.entity.Technician;
import com.rm.zeyou.response.ApiRestResponse;
import com.rm.zeyou.vo.request.*;
import com.rm.zeyou.vo.response.SelectTechnicianDetailResponseVo;
import com.rm.zeyou.vo.response.SelectTechnicianListResponseBaseVo;
import com.rm.zeyou.vo.response.TechnicianPersonalCenterResponseVo;

import java.io.UnsupportedEncodingException;
import java.util.Map;

/**
 * <p>
 * 技师表 服务类
 * </p>
 *
 * @author YanYang
 * @since 2025-03-12 15:55:09
 */
public interface TechnicianService extends IService<Technician> {
    ApiRestResponse<SelectTechnicianListResponseBaseVo> selectTechnicianList(Long userId,SelectTechnicianListVo requestVo);

    ApiRestResponse<SelectTechnicianDetailResponseVo> selectTechnicianDetail(Long userId, SelectTechnicianListVo requestVo);

    String selectTechnicianEarliesTime(Long tid);

    String selectTechnicianAge(Technician technician);

    Integer selectTechnicianOrderReceiving(Technician technician);

    ApiRestResponse<SelectTechnicianListResponseBaseVo> selectTechnicianListByItemId(Long userId, SelectTechnicianListVo requestVo);

    ApiRestResponse<Map<String, String>> technicianPassLogin(TechnicianPassLoginVo loginVo);

    ApiRestResponse technicianH5BindWx(Technician technician) throws UnsupportedEncodingException;

    ApiRestResponse technicianAPPBindWx(Technician technician, UserBindTelVo bindTelVo);

    ApiRestResponse<Void> technicianUpdatePasVerify(TechnicianReplacePassVo replaceVo);

    ApiRestResponse<Integer> technicianReplacePass(TechnicianReplacePassVo replaceVo);

    ApiRestResponse<TechnicianPersonalCenterResponseVo> technicianPersonalCenter(Technician technician);

    ApiRestResponse<Integer> technicianOnline(Technician technician);

    ApiRestResponse<Integer> technicianLoginOut(Technician technician);

    void updateTechnicianOnlineTime();

    ApiRestResponse<Void> technicianUpdateTelVerify(Technician technician, TechnicianUpdateTelVo updateVo);

    ApiRestResponse<Integer> technicianUpdateTel(Technician technician, TechnicianUpdateTelVo updateVo);

    ApiRestResponse<Integer> technicianUpdate(Technician technician, TechnicianUpdateVo updateVo);



}
